﻿
#region 程序集引用区
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using SubSonic.DataProviders;
using SubSonic.Extensions;
using System.Linq.Expressions;
using SubSonic.Schema;
using System.Collections;
using SubSonic;
using SubSonic.Repository;
using System.ComponentModel;
using System.Data.Common;
using SubSonic.Query;
using System.Xml;
using System.Xml.Serialization;
using System.Reflection;
#endregion

namespace WebeTerm.Model{
    
    /// <summary>
    /// 文 件 名: CompanyPlugIns.cs
    /// CLR版本 : v2.0.50727
    /// 作   者 : lijun.hu
    /// 版    权: Copyright @2011 lijun.hu(FORCEN HU) 
    /// 电子邮箱：lijun.hu@shinsoft.net
    /// 说    明: 公司应用
    /// 生成日期: 2014年12月5日
    /// </summary>
    [Serializable]
    [Description(@"公司应用")]
    public partial class CompanyPlugIns:BaseModel, IModel{
        
        #region 构造函数
        /// <summary>
        /// 公司应用
        /// </summary>
        public CompanyPlugIns() : base(new CompanyPlugInsTable(null)) { 
            
        }               
        #endregion
        
        #region CompanyPlugIns属性列表
        System.Guid m_Id;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Guid  Id
        {
            get { return m_Id; }
            set
            {
                //if(m_Id!=value)
                {
                    m_Id=value;
                    UpdateColumn(@"Id");
                }
            }
        }
        
        System.Guid m_CompayId;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Guid  CompayId
        {
            get { return m_CompayId; }
            set
            {
                //if(m_CompayId!=value)
                {
                    m_CompayId=value;
                    UpdateColumn(@"CompayId");
                }
            }
        }
        
        System.String m_PlugInCode;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  PlugInCode
        {
            get { return m_PlugInCode; }
            set
            {
                //if(m_PlugInCode!=value)
                {
                    m_PlugInCode=value;
                    UpdateColumn(@"PlugInCode");
                }
            }
        }
        
        System.DateTime m_ExpireDate;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.DateTime  ExpireDate
        {
            get { return m_ExpireDate; }
            set
            {
                //if(m_ExpireDate!=value)
                {
                    m_ExpireDate=value;
                    UpdateColumn(@"ExpireDate");
                }
            }
        }
        
        System.DateTime? m_LastTryDate;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.DateTime?  LastTryDate
        {
            get { return m_LastTryDate; }
            set
            {
                //if(m_LastTryDate!=value)
                {
                    m_LastTryDate=value;
                    UpdateColumn(@"LastTryDate");
                }
            }
        }
        
        System.Int32? m_Interval;
        /// <summary>
        /// 轮询间隔
        ///</summary>
        [XmlAttribute()]
        [Description(@"轮询间隔")]
        public System.Int32?  Interval
        {
            get { return m_Interval; }
            set
            {
                //if(m_Interval!=value)
                {
                    m_Interval=value;
                    UpdateColumn(@"Interval");
                }
            }
        }
        
        System.String m_PlugInJson;
        /// <summary>
        /// 插件配置JSON串
        ///</summary>
        [XmlAttribute()]
        [Description(@"插件配置JSON串")]
        public System.String  PlugInJSon
        {
            get { return m_PlugInJson; }
            set
            {
                //if(m_PlugInJson!=value)
                {
                    m_PlugInJson=value;
                    UpdateColumn(@"PlugInJson");
                }
            }
        }
        
        System.Guid? m_ConfigId;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Guid?  ConfigId
        {
            get { return m_ConfigId; }
            set
            {
                //if(m_ConfigId!=value)
                {
                    m_ConfigId=value;
                    UpdateColumn(@"ConfigId");
                }
            }
        }
        
        #endregion
        
        
        #region 关联父级
        private CompanyInfo m_FK_COMPANYP_REFERENCE_COMPANYI;
        /// <summary>
        /// FK_COMPANYP_REFERENCE_COMPANYI:未定义.
        /// <remarks>
        /// 外键名称：FK_COMPANYP_REFERENCE_COMPANYI
        /// 主表名称：CompanyInfo
        /// 外键字段：Id
        /// </remarks>
        /// </summary>
        [Browsable(false)]
        [XmlIgnore()]
        public CompanyInfo FK_COMPANYP_REFERENCE_COMPANYI{
            get{
                return m_FK_COMPANYP_REFERENCE_COMPANYI;
            }
            set{
                m_FK_COMPANYP_REFERENCE_COMPANYI=value;
            }
        }
        private PlugIns m_FK_COMPANYP_REFERENCE_PLUGINS;
        /// <summary>
        /// FK_COMPANYP_REFERENCE_PLUGINS:插件库.
        /// <remarks>
        /// 外键名称：FK_COMPANYP_REFERENCE_PLUGINS
        /// 主表名称：PlugIns
        /// 外键字段：PlugInCode
        /// </remarks>
        /// </summary>
        [Browsable(false)]
        [XmlIgnore()]
        public PlugIns FK_COMPANYP_REFERENCE_PLUGINS{
            get{
                return m_FK_COMPANYP_REFERENCE_PLUGINS;
            }
            set{
                m_FK_COMPANYP_REFERENCE_PLUGINS=value;
            }
        }
        #endregion
       
    }
} 



